package com.openvas.exception;

/**
 * 自定义异常处理类
 */
public class MyException extends RuntimeException {
    private int status;

    public MyException(int status,String message){
        super(message);
        this.status=status;
    }

    public MyException(ErrorInfo errorInfo){
        super(errorInfo.getMessage());
        this.status=errorInfo.getStatus();
    }
}
